package com.zhentao.day04.am;

// Object 是所有类的父类, 没有声明继承关系, 那么当前类就默认的继承了Object
public class Animal {
  public Animal (){
    System.out.println("Animal init...");
  }
}

class Dog extends Animal {
  public Dog (){
    System.out.println("Dog init...");
  }
}
